package com.qys.livesMall.shop.modal.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @packageName:
 * @className:SeckillDto
 * @Description:
 * @author:guomx
 * @date:2023/7/318:11
 */
@Data
@Valid
public class SeckillDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    @NotNull
    @Schema(description = "活动名字")
    private String activityName;
    @NotNull
    @Schema(description = "展示位置1首页，2内页")
    private Integer activityLocaltion;
    @NotNull
    @Schema(description = "商户种类0：全选1：正常店铺 2：水军店铺")
    private String shopType;
    @NotNull
    @Schema(description = "开始时间")
    private long startTime;
    @NotNull
    @Schema(description = "结束时间")
    private long endTime;
    @NotNull
    @Schema(description = "购买个数")
    private String num;

    @Schema(description = "活动描述")
    private String description;
    @NotNull
    @Schema(description = "预约时间分钟")
    private Integer appointment=0;
    @Schema(description = "商品搜索(前端透传参数)")
    private String goodsSearch;
    @NotNull
    private List<SeckillGoodsDto> seckillGoods;

}
